package Server;

import java.rmi.Naming;
import java.rmi.registry.LocateRegistry;

import Controlador.Sistema;


public class CPRServer {


	public static void main(String[] args) {
	   	try {
	   		Sistema.crearCosas();
	    	String location="//localhost/CPRServer";
	    	LocateRegistry.createRegistry(1099);	
	    	CPRRemoteImp server = CPRRemoteImp.getInstance();
	        Naming.rebind(location, server);
	        System.out.println("Fijado en " + location);	
	   	} catch (Exception e) {
	   		e.printStackTrace();	
	   	};		
	}
}
